package com.yunsc.media.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @version: 1.0
 * @Author: adan
 * @description: 查询文件DTO
 * @date: 2024-04-21 0:32
 */
@ApiModel(value = "查询文件DTO")
@Data
public class QueryFileDTO {

    @ApiModelProperty(value = "分组ID")
    @JsonProperty("groupId")
    private Integer groupId;

    @ApiModelProperty(value = "页码")
    private Integer page = 1; // 设置默认页码为1

    @ApiModelProperty(value = "页码大小")
    @JsonProperty("pageSize")
    private Integer pageSize = 10; // 设置默认页码大小为1

    @ApiModelProperty(value = "文件类型")
    @JsonProperty("fileType")
    private Integer fileType;

    @ApiModelProperty(value = "文件名称")
    @JsonProperty("fileName")
    private String fileName;

    @ApiModelProperty(value = "存储类型")
    private String storage = "minio"; // 默认存储类型为minio

    @ApiModelProperty(value = "渠道")
    private Integer channel;
}
